<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
	</head>
	<body>
		<div id="app">
			<button v-on:click="like()">点击隐藏文字</button>
			<p v-if="seen">今天真好！</p>
		</div>
		<script>
			let app =new Vue({
				el:"#app",
				data:{
					seen:true,
				},
				methods:{
					like:function(){
						this.seen = !this.seen;
					}
				}
			});
		</script>
	</body>
</html>
